// import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';
import { Router } from "@angular/router";

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  title = 'app';
}
// export class AppComponent implements OnInit{
//   title = 'app';
//   constructor(private router: Router) { }
//   ngOnInit() {
//     //Called after the constructor, initializing input properties, and the first call to ngOnChanges.
//     //Add 'implements OnInit' to the class.
//     setTimeout(()=>
//   this.router.navigate(['/login'])
//   , 5000)
    
//   }
// }
